-- GENERATED SPELL FOR [Xavian Hellcaller] --


function spell0_3757(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3757', 3000, 1)
end

function spell1_3757(pUnit, Event) --@Gift of the Xavian,Self--
pUnit:FullCastSpellOnTarget(6925,pUnit)
pUnit:RegisterEvent('Sorts_3757', 5000, 1)
end

function spell2_3757(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(39273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3757', 8000, 1)
end

function Sorts_3757(pUnit, Event)
local choix_sorts_3757 = math.random(0, 2)
if choix_sorts_3757 == 0 then
pUnit:RegisterEvent('spell0_3757', 1, 1)
end
if choix_sorts_3757 == 1 then
pUnit:RegisterEvent('spell1_3757', 1, 1)
end
if choix_sorts_3757 == 2 then
pUnit:RegisterEvent('spell2_3757', 1, 1)
end
end

function mob3757_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3757', math.random(1500, 3000), 1)
end

function mob3757_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3757_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3757_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3757, 1, 'mob3757_Action')
RegisterUnitEvent(3757, 2, 'mob3757_Leave')
RegisterUnitEvent(3757, 3, 'mob3757_Kill')
RegisterUnitEvent(3757, 4, 'mob3757_Die')
